package com.jmb.api.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 
 * @TableName api_case_suite_log
 */
@TableName(value ="api_case_suite_log")
@Data
public class ApiCaseSuiteLog extends BaseEntity {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */

    @TableField(value = "suite_id")
    private Integer suiteId;

    /**
     * 测试套件日志编号
     */
    @TableField(value = "suite_log_no")
    private String suiteLogNo;

    /**
     * 运行时长ms
     */
    @TableField(value = "run_time")
    private Long runTime;

    /**
     * 测试套件总用例
     */
    @TableField(value = "total_case")
    private Integer totalCase;

    /**
     * 运行总用例数
     */
    @TableField(value = "total_run_case")
    private Integer totalRunCase;

    /**
     * 跳过数（未启用）
     */
    @TableField(value = "total_skip")
    private Integer totalSkip;

    /**
     * 运行成功数
     */
    @TableField(value = "total_success")
    private Integer totalSuccess;

    /**
     * 运行失败数
     */
    @TableField(value = "total_failed")
    private Integer totalFailed;

    /**
     * 运行错误数
     */
    @TableField(value = "total_error")
    private Integer totalError;

    /**
     * 总重试用例数
     */
    @TableField(value = "total_retry")
    private Integer totalRetry;

    /**
     * 开始运行时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 运行完成时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 执行方式 0并行1串行
     */
    @TableField(value = "execute_type")
    private Integer executeType;

    /**
     * 0dev1test2stg3prod4debug
     */
    @TableField(value = "run_dev")
    private Integer runDev;

    /**
     * 执行人
     */
    @TableField(value = "executor")
    private String executor;

    /**
     * 是否失败重新 0是1否
     */
    @TableField(value = "is_retry")
    private Integer isRetry;

    /**
     * 0进行中1执行完成2执行失败
     */
    @TableField(value = "progress")
    private Integer progress;

    /**
     * 执行进度百分比
     */
    @TableField(value = "percentage")
    private Integer percentage;
}